x86: don't open-code cpuid_count() in pv_cpuid()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:49:04 +0000 (12:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:49:04 +0000 (12:49 +0100)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/traps.c

index a8d7bb673b5edca52198bb8b3e71095ad101d81e..322ebf44b3f2e2fe6c5421c04dfdfd9076498c6c 100644 (file)
@@ -861,10 +861,7 @@ void pv_cpuid(struct cpu_user_regs *regs)
         goto out;
     }
 
-    asm ( 
-        "cpuid"
-        : "=a" (a), "=b" (b), "=c" (c), "=d" (d)
-        : "0" (a), "1" (b), "2" (c), "3" (d) );
+    cpuid_count(a, c, &a, &b, &c, &d);
 
     if ( (regs->eax & 0x7fffffff) == 0x00000001 )
     {